package com.nju.crawler.domain;

import cn.hutool.core.lang.Pair;

import java.io.Serializable;

/**
 * @authorliyunfei
 * @date2022/11/20
 **/
public class WordCloudPair<K,V>  implements Serializable { //extends Pair<K,V>
    private static final long serialVersionUID = 1131131L;
    private K name;
    private V value;
    public WordCloudPair(K name, V value) {
       this.name = name;
       this.value = value;
    }

    public K getName() {
        return name;
    }

    public V getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "Pair [name=" + this.name + ", value=" + this.value + "]";
    }
}
